package business.report.impl;

import business.report.RepairOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.RepairOperation;
import report.domain.RepairOperationCriteria;
import report.mapper.RepairOperationMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "repairOperationService")
public class RepairOperationServiceImpl implements RepairOperationService {
    @Autowired
    RepairOperationMapper repairOperationMapper;

    @Override
    public List<RepairOperation> getRepairOperation() {
        RepairOperationCriteria criteria = new RepairOperationCriteria();
        criteria.createCriteria().getAllCriteria();
        return repairOperationMapper.selectByExample(criteria);
    }
}
